|
Расположение в меню |
---|
Эскиз → Ограничения эскиза → Ограничение перпендикулярности |
Верстаки |
Скетчер |
Быстрые клавиши |
N |
Представлено в версии |
- |
См. также |
Скетчер Ограничение Угла |
Инструмент Ограничение перпендикулярности устанавливает перпендикулярность двух линий, или двух рёбер, или ребра и оси в точке их пересечения. Линии рассматриваются как бесконечные, а открытые кривые также виртуально удлиняются. Ограничение также может соединить два ребра, заставив их быть перпендикулярными в месте соединения.
Смотри также: Вспомогательные инструменты рисования.
Два ребра становятся перпендикулярными в месте их (виртуального) пересечения. Если одно из рёбер является округлым, добавляется объект Точка, имеющий ограничение Точки на объекте с обоими (продлёнными) рёбрами.
Конечные точки становятся совпадающими, а рёбра - перпендикулярными в этой точке.
The endpoint of one edge is constrained to lie on the other edge, and the edges are made perpendicular at that point.
The two edges are made perpendicular at a given point. The point can be any point, e.g. the center of a circle, the endpoint of an edge, or the origin, it can belong to one of the edges, and it can also be a Point object. If required Point on object constraint(s) are added to ensure the point lies on both (extended) edges. These additional constraints are called helper constraints.
Perpendicular Constraint can be created from macros and from the python console by using the following:
# direct perpendicularity
Sketch.addConstraint(Sketcher.Constraint('Perpendicular',icurve1,icurve2))
# point-to-point perpendicularity
Sketch.addConstraint(Sketcher.Constraint('Perpendicular',icurve1,pointpos1,icurve2,pointpos2))
# point-to-curve perpendicularity
Sketch.addConstraint(Sketcher.Constraint('Perpendicular',icurve1,pointpos1,icurve2))
# perpendicular-via-point (plain constraint, helpers are not added automatically)
Sketch.addConstraint(Sketcher.Constraint('PerpendicularViaPoint',icurve1,icurve2,geoidpoint,pointpos))
where:
Sketch
is a sketch objecticurve1
, icurve2
are two integers identifying the curves to be made perpendicular. The integers are indexes in the sketch (the value, returned by Sketch.addGeometry
).pointpos1
, pointpos2
should be 1
for start point and 2
for end point.geoidpoint
and pointpos
in PerpendicularViaPoint are the indexes specifying the point of perpendicularity.The Sketcher scripting page explains the values which can be used for icurve1
, icurve2
, pointpos1
, pointpos2
and geoidpoint
, and contains further examples on how to create constraints from Python scripts.